import QtQuick 2.12
import QtQuick.Controls 2.3
import QtWebEngine 1.10

ApplicationWindow {
    id: window
    visible: true
    width: 640
    height: 480

    Navigation{
        anchors.fill: parent
        title: "Item Example"
        source: "qrc:/EpText.qml"
        model:ListModel{
            id: listModel
            ListElement{title:"EpText";src:"qrc:/EpModel.qml"}
            ListElement{title:"EpRectangle";src:"qrc:/EpRectangle.qml"}
        }
    }

    QtObject{
        id: _obj
        property string name: ""
    }
    EpModel{
        id: model

        Component.onCompleted: {
            for(var i = 0; i < 10; i++){
                _obj.name = String("a%1").arg(i);
                model.appendDownloading(_obj)
            }
            model.printDownloading();
        }
    }


}

